package com.workingpub.commons.resource;

import java.util.Map;

import org.osgi.framework.Constants;

/**
 * 管理PID前辍为<br>
 * DEFAULT_PID_PREFIX : com.wlqq <br>
 * 的所有配置资源，实时同步
 * 
 * @author taoping
 *
 */
public interface CommonConfig {
	String DEFAULT_PID_PREFIX = "com.wlqq.config";
	String DEFAULT_PID_FILTER = "(" + Constants.SERVICE_PID + "=" + DEFAULT_PID_PREFIX + "*)";

	String getProperty(String key, String defaultValue);

	void reload();

	Map<String, String> getProperties();
}
